home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / CHIP Kasım 1998.iso / DRIVERS / CD-Rom / 220x.exe / AF1.BAT < prev    next >
DOS Batch File  |  1993-01-12  |  3KB  |  150 lines

  1. ECHO OFF
  2. cls
  3. prompt $p$g
  4. if "%1" == "?"    goto usage
  5.  
  6. if "%1" == "at" goto inst
  7. if "%1" == "AT" goto inst
  8. if "%1" == "xt" goto inst
  9. if "%1" == "XT" goto inst
  10.  
  11. if "%1" == "2at" goto inst
  12. if "%1" == "2AT" goto inst
  13. if "%1" == "2xt" goto inst
  14. if "%1" == "2XT" goto inst
  15.  
  16. if "%1" == "3at" goto inst
  17. if "%1" == "3AT" goto inst
  18. if "%1" == "3xt" goto inst
  19. if "%1" == "3XT" goto inst
  20.  
  21. if "%1" == "4at" goto inst
  22. if "%1" == "4AT" goto inst
  23. if "%1" == "4xt" goto inst
  24. if "%1" == "4XT" goto inst
  25.  
  26. sel_seq
  27.  
  28. :inst
  29. cls
  30. ECHO\
  31. ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
  32. ECHO         as Incorrect DOS version.
  33.  
  34. IF EXIST AUTOEXEC.BAT    del autoexec.bat
  35. IF EXIST CONFIG.SYS    del config.sys
  36. ECHO Two files will be copied from the boot disk to Library disk if exist.
  37. ECHO Then the files will be modified.
  38. ECHO Continue in response to each prompt.
  39.  
  40. ECHO\
  41. ECHO NOTE: Even if your computer has only one floppy disk drive,
  42. ECHO       the following message will be displayed at each prompt.
  43.  
  44. ECHO\
  45. ECHO       Insert diskette for drive A: (or B:) and strike
  46. ECHO       any key when ready
  47.  
  48. ECHO\
  49. ECHO       Make a note of the following:
  50.  
  51. ECHO\
  52. ECHO       If drive letter A: appears, insert Library disk.
  53.  
  54. ECHO\
  55. ECHO       If drive letter B: appears, insert boot disk.
  56.  
  57. ECHO\
  58. PAUSE
  59.  
  60. ECHO ON
  61. COPY B:\AUTOEXEC.BAT A:
  62. COPY B:\CONFIG.SYS A:
  63.  
  64. ECHO OFF
  65. ECHO\
  66. ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified.  Wait for a while.
  67. shell3 del_DVR
  68. shell3 del_MSCD
  69. ECHO\
  70. ECHO ON
  71. COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
  72. ECHO OFF
  73.  
  74. shell3 app A:\%2
  75. shell3 m_sys A:\%2
  76.  
  77. :take_a
  78.  
  79. ECHO OFF
  80. CLS
  81. ECHO Some files will be copied from Library disk to the target disk.
  82. ECHO Continue in response to each prompt, then you can install 
  83. ECHO Sony MS-DOS CD-ROM Extensions on the target disk.
  84.  
  85. ECHO\
  86. ECHO NOTE: Even if your computer has only one floppy disk drive,
  87. ECHO       the following message will be displayed at each prompt.
  88.  
  89. ECHO\
  90. ECHO       Insert diskette for drive A: (or B:) and strike
  91. ECHO       any key when ready
  92.  
  93. ECHO\
  94. ECHO       Make a note of the following:
  95.  
  96. ECHO\
  97. ECHO       If drive letter A: appears, insert Library disk.
  98.  
  99. ECHO\
  100. ECHO       If drive letter B: appears, insert a target disk.
  101.  
  102.  
  103. ECHO\
  104. PAUSE
  105. if "%2" == "" goto make_a
  106. ECHO ON
  107. MD B:\%2
  108. ECHO OFF
  109.  
  110. :make_a
  111. ECHO ON
  112. COPY AUTOEXEC.BAT+AUTOEXEC.ADD B:\AUTOEXEC.BAT
  113. COPY CONFIG.SYS B:\
  114. COPY SONY_CDU.SYS B:\%2
  115. COPY MSCDEX.EXE B:\%2
  116.  
  117. ECHO OFF
  118. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  119. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  120. IF EXIST *.NEW        DEL *.NEW
  121.  
  122. LAST_MSG A %2
  123. goto exit
  124.  
  125. :usage
  126. echo\
  127. echo\
  128. echo     USAGE...
  129. echo\
  130. echo     AF1 XX [Option] and Enter
  131. echo\
  132. echo         XX: Your computer type, AT or XT
  133. echo             Option: Sub Directory
  134. echo\
  135. echo\
  136. echo     AF1 ? and Enter         ; Display this message.
  137.  
  138. echo\
  139. echo\
  140. :exit
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.                  
  150.